﻿using System.Windows;
using DaphneProfiBase;
using GalaSoft.MvvmLight.Messaging;

namespace DaphneForms
{
    /// <summary>
    /// Description for GameSaveForm.
    /// </summary>
    public partial class GameSaveForm : Window
    {
        /// <summary>
        /// Initializes a new instance of the GameSaveForm class.
        /// </summary>
        public GameSaveForm()
        {
            InitializeComponent();

            // register close form message
            Messenger.Default.Register<NotificationMessage>(this, (nm) =>
                {
                    if (nm.Notification == Notify.SaveGameFormClose)
                    {
                        this.Close();
                    }
                });

        }
    }
}